package com.company.cloud.admin.modules.admin.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.company.cloud.common.auth.bean.PermRoleInfo;

public interface UserRolePermissionMapper {

	@Select("SELECT a.resource AS permUrl,a.code AS permCode,b.role_code AS roleCode FROM pt_admin_permission_info a "
			+ "INNER JOIN pt_admin_role_permission_info b ON (a.code=b.per_code) ${ew.customSqlSegment}")
	public List<PermRoleInfo> queryPermRole(@Param(Constants.WRAPPER) Wrapper<PermRoleInfo> wrapper);
	
	


	
}
